home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
UpTime Volume 2 #4
/
utv2n4s2.d64
/
the psychic
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-28
|
3KB
|
125 lines
10 rem the psychic, by david payne
20 bc=198:if fre(0)<>fre(1) then bc=208
100 gosub 1200
140 printtab(10)"[159] *** [201]nstructions ***"
210 print" [212]he instructions are quite simple."
212 print" [202]ust guess a number between 0 and 30."
215 print" [206]ext answer the questions asked then [201]"
220 print" will guess the number."
300 printtab(7)"[150][208]ress '[210][197][212][213][210][206][150]' to [195]ontinue"
320 poke bc,0
330 get a$:if a$=chr$(13) or a$=chr$(141) then 360
335 if a$="[140]" then sys 8*4096+4
340 goto 330
360 gosub 1500
370 print" [199]uess a number between 0 and 30"
390 printtab(7)"[150][208]ress '[210][197][212][213][210][206][150]' when [210]eady"
410 poke bc,0
420 get a$:if a$=chr$(13) or a$=chr$(141)then 450
425 if a$="[140]" then sys 8*4096+4
430 goto 420
450 gosub 1500
460 t=0
470 print "[159] [201]s your number one of these?"
490 print tab(12)"[150][[217][150]]es -- [[206][150]]o[155]"
510 c=0
520 for z=1 to 5
530 p$=""
540 for k=1 to 8
550 read t$
555 if len(t$)=1 then t$=" "+t$
560 p$=p$+t$+" "
570 next k:gosub 1700
580 print "[155]"p$
590 p$=""
600 for k=1 to 7
610 read t$
615 if len(t$)=1 then t$=" "+t$
620 p$=p$+t$+" "
630 next k
640 print ""p$
650 poke bc,0
660 get a$:if a$="" then 660
665 s=asc(a$)
670 if s=89 or s=217 then 700
680 if s=78 or s=206 then 750
685 if a$="[140]" then sys 8*4096+4
690 goto 660
700 if z=1 then t=2
710 if z=2 then t=t+1
720 if z=3 then t=t+16
730 if z=4 then t=t+8
740 if z=5 then t=t+4
750 gosub 1600
760 next z
770 gosub 1500
780 printtab(12)"[154][201] am thinking..."
790 for h=0 to 30 step 2
800 if t-h=0 then m=5:goto 820
810 next h
820 for k=1 to 900:next k
830 if m=5 then printtab(10)"[158][217]our number is even[158].":goto 850
840 printtab(10)"[158][217]our number is odd[158]."
850 for k=1 to 1000:next
860 if t=31 then gosub 1800:goto 880
870 print" --> [217]ou picked the number [153]"t" <--"
880 print"[150] '[159][198]8[150]' to [197]xit -- '[210][197][212][213][210][206][150]' to [210]estart"
890 poke bc,0
900 get a$:if a$="" then 900
905 s=asc(a$)
910 if s=13 or s=141 then 940
920 if s=140 then sys 8*4096+4
930 goto 900
940 clr:goto 360
950 restore
960 hcolor= 7
970 goto 370
990 end
1100 data 2,27,14,15,18,10,22,7,19,26,23,6,3,11,30
1110 data 1,5,17,11,9,21,3,29,19,7,15,25,23, 13,27
1120 data 16,24,28,17,30,21,18,22,23,19,26,27,25,20,29
1130 data 8,9,30,10,27,14,26,28,13,11,29,24,12,15,25
1140 data 4,23,20,7,12,15,6,30,5,21,14,22,13,29,28
1200 poke 53281,0:poke 53280,11
1210 print"[158][147]";
1230 printtab(14)"[188][187][172][146][190][161][146][161][161][146][161][161][172][162][146][190]"
1240 printtab(14)" [161][146][161] [161][188][190][146][161][161][188][146][187]"
1250 printtab(14)" [161][146][161] [161][146][161][161][146][161][161][146][161]"
1260 printtab(14)" [188][190] [188][190][188][190][188][162][162][146][190]"
1265 rem -----------
1270 printtab(6)"[161][172][187][146][187][172][172][187][146][187][161][146][161][161][146][161][172][172][162][188][161][146][161][161][146][161][188] [146][190][172][172][162][188]"
1280 printtab(6)"[161][188][190][146][190][188][188][146][162] [188][188][190][146][190][161][146][161] [161][188][190][146][161] [146] [161][146][161]"
1290 printtab(6)"[161][146][161] [172][187][161][146][161] [161][146][161] [161][146][161] [162][161][146][161][161][146][161] [146] [161][146][161] [162]"
1300 printtab(6)"[188][190] [162][162][146] [188][190] [162][162][146][190][188][190][188][190][188][162][146][190] [162][162][146][190]"
1305 print"[156] [166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166][166]"
1310 print"[159] [208]sychic [205]ind [210]eading [208]rogram"
1320 printtab(10)"([158][195][159]) 1988 [196]avid [208]ayne"
1330 print"[150] [208]ress '[210][197][212][213][210][206][150]' for [201]nstructions"
1340 print"[152] [208]ublished by [211]oftdisk [208]ublishing, [201]nc."
1350 get a$:if a$<>chr$(13) and a$<>chr$(141)then 1350
1355 gosub 1500
1360 return
1500 print""
1510 sp$=" "
1520 for i=1 to 13
1530 printsp$:next
1540 print"";
1550 return
1600 print""
1610 sp$=" "
1620 for i=1 to 9
1630 printsp$:next
1640 print"";
1650 return
1700 gosub 1600
1710 print"[176][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][174]"
1720 print"[221] [221]"
1725 print"[221] [221]"
1730 print"[221] [221]"
1740 print" [173][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][189]"
1750 print"[145][145][145][145]";
1760 return
1800 printtab(8)"[150][217]our number is [214][197][210][217][150] odd."
1810 printtab(5)"[159][201]n fact it doesn't even exist."
1820 return